package com.gao.dao;

import java.sql.SQLException;

import com.gao.domain.User;

/**
 * 
 * @author Administrator
 *���ݷ��ʲ�
 */
public interface UserDao {
	/**
     * �����û����������ѯ�û�
     *
     * @param username
     * @param password
     * @return
     */
	User findUserByUsernameAndPassword(String username, String password) throws SQLException;
	
	/**
     * ����û�
     *
     * @param username
     * @param password
     * @param phonenum
     * @return
     */
	boolean addUser(String username, String password, String phonenum) throws SQLException;
	
	/**
     * �����û�����ѯ�û�
     *
     * @param username
     * @return
     */
	User findUserByUsername(String username) throws SQLException;
}
